package com.rabbiter.oes.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

@Data
@ApiModel(value = "管理员信息表")
@TableName(value = "admin")
public class Admin {

    @TableId(value = "id", type = IdType.AUTO)
    @ApiModelProperty(value = "主键id")
    private Integer id;

    @TableField(value = "acc")
    @ApiModelProperty(value = "账号")
    private String acc;

    @TableField(value = "name")
    @ApiModelProperty(value = "姓名")
    private String name;

    @TableField(value = "sex")
    @ApiModelProperty(value = "性别")
    private String sex;

    @TableField(value = "tel")
    @ApiModelProperty(value = "电话号码")
    private String tel;

    @TableField(value = "email")
    @ApiModelProperty(value = "电子邮箱")
    private String email;

    @TableField(value = "pwd")
    @ApiModelProperty(value = "密码")
    private String pwd;

    @TableField(value = "cardId")
    @ApiModelProperty(value = "身份证号")
    private String cardId;

    @TableField(value = "role")
    @ApiModelProperty(value = "角色(0管理员，1教师，2学生)")
    private String role;

}


